package com.rainy.cloud.core.result;

import com.rainy.cloud.entity.ResultCode;
import com.rainy.cloud.entity.ResultVo;
import org.aspectj.lang.ProceedingJoinPoint;

public class ResultHandler {
    public Object getResultVo(ProceedingJoinPoint joinPoint) throws Throwable {
        ResultVo<Object> resultVo = new ResultVo<Object>();
        resultVo.setData(joinPoint.proceed());
        resultVo.setCode(ResultCode.SUCCESS);
        resultVo.setErrMsg("");
        return resultVo;
    }
}
